Component({
  data:{
    selectIndex:0,
    list:[{
      pagePath:"/pages/index/index",
      selectedIconPath:"/image/tabbar/selectedIndexIcon.png",
      iconPath:"/image/tabbar/indexIcon.png",
      text:"活动"
    },
    {
      pagePath:"/pages/history/history",
      selectedIconPath:"/image/tabbar/selectedHistoryIcon.png",
      iconPath:"/image/tabbar/historyIcon.png",
      text:"投递历史"
    },
    {
      pagePath:"/pages/mine/mine",
      selectedIconPath:"/image/tabbar/selectedMineIcon.png",
      iconPath:"/image/tabbar/mineIcon.png",
      text:"我的"
    }
  ]
  },
  methods:{
    switchTab(e){
      const dataset=e.currentTarget.dataset
      wx.switchTab({url: dataset.path})
    }
  }
})